#include <stdio.h>

int main() {
    unsigned int i = 0;
    unsigned int j = 0;
    unsigned int k = 0;

    for (i = 1; i < 5; i++) {
        for (j = 1; j < 5; j++) {
            for (k = 1; k < 5; k++) {
                if (i != j && i != k && j != k) {
                    printf("%d%d%d\n", i, j, k);
                }
            }
        }
    }
}
